#pragma once
#include <string>
#include <iostream>

class Buffer
{
public:
    Buffer();

    ~Buffer();

    void append(const char* data,size_t size);
    size_t size();
    const char* data();
    void clear();

private:
    std::string buf_;
};